$OpenBSD: patch-dstumbler_log_c,v 1.2 2010/05/23 16:23:05 espie Exp $
--- dstumbler/log.c.orig	Tue Jan 22 01:43:18 2002
+++ dstumbler/log.c	Sat May 22 16:41:41 2010
@@ -55,7 +55,7 @@ log_ap(FILE *fd, struct aps_s *ap, struct log_s *log)
 {
   struct tm tmval;
 
-  gmtime_r((time_t *)&log->seen.tv_sec, &tmval);
+  localtime_r((time_t *)&log->seen.tv_sec, &tmval);
 
   fprintf(fd, "%c %4.7f\t%c %4.7f\t( %s )\t%s\t"
    "( %02x:%02x:%02x:%02x:%02x:%02x )\t"
@@ -122,7 +122,7 @@ log_node(FILE *fd, struct aps_s *ap, struct node_s *no
 {
   struct tm tmval;
 
-  gmtime_r((time_t *)&log->seen.tv_sec, &tmval);
+  localtime_r((time_t *)&log->seen.tv_sec, &tmval);
 
   fprintf(fd, "#NODE %c %4.7f\t%c %4.7f\t"
    "( %02x:%02x:%02x:%02x:%02x:%02x )\t%s\t"
@@ -208,7 +208,7 @@ log_start(char *logfile)
     return NULL;
   }
 
-  gmtime_r((time_t *)&curr_time, &tmval);
+  localtime_r((time_t *)&curr_time, &tmval);
 
   /* print file header */
   fprintf(fd,
